﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApp3
{
    /// <summary>
    /// Empoles.xaml 的交互逻辑
    /// </summary>
    public partial class Empoles : Window
    {
        public Empoles()
        {
            InitializeComponent();
            List<Employee> employees = new List<Employee>();
            employees.Add(new Employee() { 
                  name="张三",
                  bumen="行政部",
                  Phone="13587774545",
                  address="河南省",
                  workcontent="工作非常好"
            });
            employees.Add(new Employee()
            {
                name = "李四",
                bumen = "行政部",
                Phone = "13587774545",
                address = "河南省",
                workcontent = "工作非常好"
            });
            employees.Add(new Employee()
            {
                name = "王五",
                bumen = "行政部",
                Phone = "13587774545",
                address = "河南省",
                workcontent = "工作非常好"
            });
            employees.Add(new Employee()
            {
                name = "赵六",
                bumen = "行政部",
                Phone = "13587774545",
                address = "河南省",
                workcontent = "工作非常好"
            });
            this.Listview.ItemsSource = employees;
        }
    }
}
